package com.njwb.day11.ttt;

import java.util.TreeSet;

public class Main {
    public static void main(String[] args) {
        TreeSet<Student> studentSet = new TreeSet<>();

        studentSet.add(new Student("张三", 90, 85, 80));
        studentSet.add(new Student("李四", 95, 75, 88));
        studentSet.add(new Student("王五", 90, 85, 85));
        studentSet.add(new Student("赵六", 90, 85, 80));
        studentSet.add(new Student("钱七", 90, 85, 90));

        for (Student s : studentSet) {
            System.out.println(s);
        }
    }
}
